import Vue from 'vue'
import Router, { RouteConfig } from 'vue-router'
import IndexPage from '@/pages/index/IndexPage.vue'
import InformationPage from '@/pages/information/InformationPage.vue'
import IndexRoutes from './Module/index'
import InformationRoutes, { ViewDetailRoute } from './Module/information'

Vue.use(Router)

const routes: RouteConfig[] = [
  {
    path: '/',
    component: IndexPage,
    children: IndexRoutes
  },
  {
    path: '/information',
    component: InformationPage,
    children: InformationRoutes
  },
  ViewDetailRoute
]

export default new Router({
  routes: routes
})
